﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;

namespace Silverlight3dApp.Learning.Lesson05
{
    public class DirectSprite : AutomatedSprite
    {
        public DirectSprite(Texture2D texture, Vector2 position, Vector2 frameSize, int collisionOffset, Vector2 currentFrame, Vector2 sheetSize, Vector2 speed, SoundEffect collisionSound, int scoreValue) : base(texture, position, frameSize, collisionOffset, currentFrame, sheetSize, speed, collisionSound, scoreValue)
        {
        }

        public DirectSprite(Texture2D texture, Vector2 position, Vector2 frameSize, int collisionOffset, Vector2 currentFrame, Vector2 sheetSize, Vector2 speed, SoundEffect collisionSound, int millisecondsPerFrame, int scoreValue) : base(texture, position, frameSize, collisionOffset, currentFrame, sheetSize, speed, collisionSound, millisecondsPerFrame, scoreValue)
        {
        }

        public override void Update(GameTime gameTime, Rectangle clientBounds)
        {
            base.Update(gameTime, clientBounds);
            _Position += Direction;
        }
    }
}